package com.xian.minespring.scan.model;

import com.xian.minespring.annotation.Autowired;
import com.xian.minespring.annotation.Component;
import com.xian.minespring.annotation.Value;
import jakarta.annotation.PostConstruct;

/**
 * @author zhan
 * @version 2024/1/2
 */
@Component
public class ComponentBean {

    private String name;

    @Value("${app.title}")
    private String value;

    @Autowired
    private C c;

    @PostConstruct
    public void init() {
        this.name = "init()";
    }
}
